@/* 侧边栏 */
<div class="layui-side">
    <div class="layui-side-scroll">

        @for(item in menus){
            <ul class="layui-nav layui-nav-tree arrow2" nav-id="${item.systemType}" lay-accordion="false" lay-filter="admin-side-nav">
            @for(menu in item.menus) {
                @if(tool.isEmpty(menu.children)){
                <li class="layui-nav-item layui-nav-itemed">
                    @if(itemLP.first && menuLP.first){
                    <a id="firstPageAction" lay-href="${menu.url}"><i class="layui-icon ${menu.icon}"></i>&emsp;<cite>${menu.name}</cite></a>
                    @}else{
                    <a lay-href="${menu.url}"><i class="layui-icon ${menu.icon}"></i>&emsp;<cite>${menu.name}</cite></a>
                    @}
                </li>
                @}else{
                <li class="layui-nav-item layui-nav-itemed">
                    <a><i class="layui-icon ${menu.icon}"></i>&emsp;<cite>${menu.name}</cite></a>
                    <dl class="layui-nav-child" style="display: block;">
                    @for(subMenu in menu.children){
                        @if(tool.isEmpty(subMenu.children)){
                            @if(itemLP.first && menuLP.first && subMenuLP.first){
                        <dd><a id="firstPageAction" lay-href="${subMenu.url}"><i class="layui-icon ${subMenu.icon}"></i>&emsp;<cite>${subMenu.name}</cite></a></dd>
                            @}else{
                        <dd><a lay-href="${subMenu.url}"><i class="layui-icon ${subMenu.icon}"></i>&emsp;<cite>${subMenu.name}</cite></a></dd>
                            @}
                        @}else{
                        <dd>
                            <a>${subMenu.name}</a>
                            <dl class="layui-nav-child" style="display: block;">
                            @for(subSubMenu in subMenu.children){
                                @if(tool.isEmpty(subSubMenu.children)){
                                    @if(itemLP.first && menuLP.first && subMenuLP.first && subSubMenuLP.first){
                                <dd><a id="firstPageAction" lay-href="${subSubMenu.url}"><i class="layui-icon ${subSubMenu.icon}"></i>&emsp;<cite>${subSubMenu.name}</cite></a></dd>
                                    @}else{
                                <dd><a lay-href="${subSubMenu.url}"><i class="layui-icon ${subSubMenu.icon}"></i>&emsp;<cite>${subSubMenu.name}</cite></a></dd>
                                    @}
                                @}else{
                                <dd>
                                    <a>${subSubMenu.name}</a>
                                    <dl class="layui-nav-child" style="display: block;">
                                    @for(subSubSubMenu in subSubMenu.children){
                                        @if(itemLP.first && menuLP.first && subMenuLP.first && subSubMenuLP.first && subSubSubMenuLP.first){
                                        <dd><a id="firstPageAction" lay-href="${subSubSubMenu.url}"><i class="layui-icon ${subSubSubMenu.icon}"></i>&emsp;<cite>${subSubSubMenu.name}</cite></a></dd>
                                        @}else{
                                        <dd><a lay-href="${subSubSubMenu.url}"><i class="layui-icon ${subSubSubMenu.icon}"></i>&emsp;<cite>${subSubSubMenu.name}</cite></a></dd>
                                        @}
                                    @}
                                    </dl>
                                </dd>
                                @}
                            @}
                            </dl>
                        </dd>
                        @}
                    @}
                    </dl>
                </li>
                @}
            @}
            </ul>
        @}

    </div>
</div>